<?php
session_start();
require_once("include/connection.php");
?>
<?php
if (isset($_POST['loginBTN'])){
$safeName=mysql_real_escape_string($_POST['uName']);
$safePass=mysql_real_escape_string($_POST['uPass']);








/*
$q= " SELECT * FROM ".$DBname.".users WHERE
       username = '".$safeName."' AND  
	   password = '".md5($safePass)."' LIMIT 1 
";
$r=mysql_query($q);

if (mysql_num_rows($r) > 0){
	$user = mysql_fetch_array($r);
	$_SESSION['userLogged'] = 1;
	$_SESSION['userID'] = $user['id'];
	$_SESSION['userName'] =$user['username'];
	$_SESSION['userDate'] = $user['signup_date'] ;
    $_SESSION['userImage'] = $user['image'] ;
	}
	else{
		
		$_SESSION['login_error'] = "please try again !! " ;
		}
		header ("location: index.php");*/
                
}

?>